<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head></h:head>
<h:body>

	<h:form>
		<p:panel header="Cidade/UF Combo" style="width:550px;">
			<h:panelGrid styleClass="centered" width="400px">

				<h:selectOneMenu id="curso" value="#{opcoesControle.curso}">
					<f:selectItem itemLabel="Selecione o Curso" itemValue="" />
					<f:selectItems value="#{opcoesControle.mapaCursos}" />
					<p:ajax update="convenio"
						listener="#{opcoesControle.tratarMudancaCurso}" />
				</h:selectOneMenu>

				<h:selectOneMenu id="convenio" value="#{opcoesControle.convenio}">
					<f:selectItem itemLabel="Selecione o Convênio" itemValue="" />
					<f:selectItems value="#{opcoesControle.mapaConvenios}" />
					<p:ajax update="telessala"
						listener="#{opcoesControle.tratarMudancaConvenio}" />
				</h:selectOneMenu>

				<h:selectOneMenu id="telessala" value="#{opcoesControle.telessala}">
					<f:selectItem itemLabel="Selecione a Telessala" itemValue="" />
					<f:selectItems value="#{opcoesControle.mapaTelessalas}" />
				</h:selectOneMenu>

				<p:commandButton value="Entrar"
					action="#{opcoesControle.redirecionarFileUpload}" />
			</h:panelGrid>
		</p:panel>
	</h:form>

</h:body>
</html>